﻿using System.Collections;
using System.Windows;
using System.Windows.Controls;
using System.Collections.ObjectModel;
using System;
using testPlayList;

namespace testWPF
{
    public class MediaElementViewModel : DependencyObject
    {
        public MediaElementViewModel(MediaElement media, MediaState mediaState)
        {
            // TODO: Complete member initialization
            this.mediaView = media;
            this.LoadedBehavior = mediaState;
            this.mediaCmd = new MediaElementModel(this);
            this.canExecuteCommand = true;
            this.Source = "C:\\Users\\42\\Downloads\\torrent\\Lawless.2012.FRENCH.DVDRiP.XViD-FUZION.avi";
            this.mediaView.Visibility = Visibility.Hidden;
            this.playListCmd = new PlayListModel(this);
            this.library = new ObservableCollection<PlaylistItem>();
//            library = new ObservableCollection<PlayListModel>();
        }

        public MediaElementModel mediaCmd { set; get; }
        public MediaElement mediaView { set; get; }
        public bool canExecuteCommand { set; get; }
        public string Source { set; get; }
        public MediaState LoadedBehavior { set; get; }
        public PlayListModel playListCmd { set; get; }
        public ObservableCollection<PlaylistItem> library { set; get; }
        // Une collection pour la playlist en cours.
        // Une collection pour la bibliothèque Video
        // Une collection pour la bibliothèque Audio
        // playlistModel pour la playlist
        // bibliothèqueVideoModel
        // bibliothèqueAudioModel
    }
}
